//
//  BookTable.m
//  SimpleNote
//
//  Created by mac on 2017/11/24.
//  Copyright © 2017年 上海LOL信息技术服务有限公司. All rights reserved.
//

#import "BookTable.h"
#import "BookRecord.h"

@implementation BookTable

#pragma mark - CTPersistanceTableProtocol

-(NSString *)databaseName{
    return @"BookDateBase.sqlite";
}

-(NSString *)tableName{
    return @"BookTable";
}

-(NSDictionary *)columnInfo{
    return @{@"identifier":@"INTEGER PRIMARY KEY AUTOINCREMENT",
             @"title":@"TEXT",
             @"content":@"TEXT",
             @"time":@"TEXT",
             };
}

-(Class)recordClass{
    return [BookRecord class];
}


-(NSString *)primaryKeyName{
    return @"identifier";
}


@end
